#!/usr/local/php/bin/php
<?php

$data_file = 'dev_rpt.txt';
$fp = fopen($data_file, 'r');
$data =array();
if ($fp) {
	while (!feof($fp)) {
		$row = fgets($fp, 1024);
		$row = trim($row);
		if (!empty($row)) {
			list($FUId, $FCId, $FAId) = explode("\t", $row);
			$data[] = array(
				'FUId' => $FUId,
				'FCId' => $FCId,
				'FAId' => $FAId,
				'FSiteSetId' => 0,
			);
		}
	}
} 
//print_r($data);
$store_data = var_export($data, true);
file_put_contents('dev_rpt.php', "<?php\n\$TEST_Rpt=$store_data;");

//end of script
